/**
 * user api
 */
import $http from '../../http/http'

/**
 * 根据用户名获取用户列表
 */
export const queryUsersPage = (username, pageNo, pageSize) => {
    return $http({
        method: "get",
        url: "userOperations/queryUsersPage",
        params: {
            username: username,
            pageNo: pageNo,
            pageSize: pageSize
        }
    });
}

/**
 * 修改用户登录密码
 */
export const modifyPassword = data => {
    return $http({
        method: "post",
        url: "userOperations/passwordModify",
        data
    });
}